package com.lhg.pattern.creational.abstractfactory;

import com.lhg.pattern.creational.factory.Circle;
import com.lhg.pattern.creational.factory.Rectangle;
import com.lhg.pattern.creational.factory.Shape;
import com.lhg.pattern.creational.factory.Square;

public  class ShapeFactory extends AbstractFactory{

    @Override
    public Color getColor(String color) {
        return null;
    }

    @Override
    public Shape getShape(String shape) {
        if ("RECTANGLE".equalsIgnoreCase(shape)){
            return new Rectangle();
        }else if("SQUARE".equalsIgnoreCase(shape)){
            return new Square();
        }else if ("CIRCLE".equalsIgnoreCase(shape)){
            return new Circle();
        }
        return null;
    }
}
